package team.seekers.oj.course.dto;
import lombok.*;
import org.hibernate.validator.constraints.Length;
import team.seekers.oj.common.entity.BaseDTO;

import javax.validation.constraints.NotBlank;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CourseDTO extends BaseDTO {

    private Long courseId;

    @Length(max = 60, message = "标题最大长度为 60")
    @NotBlank
    private String courseName;

    @NotBlank
    private String description;

    private Long userId;

    private Integer status;


}